# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class ListItem(object):

    def __init__(self, instanceId=None, migrationName=None, migrationStatus=None, currentStep=None, currentStepStatus=None, failedReason=None, createdTime=None):
        """
        :param instanceId: (Optional) 迁移任务ID
        :param migrationName: (Optional) 迁移名称
        :param migrationStatus: (Optional) 迁移状态(creating：创建中，validated：验证通过，invalid：验证失败，starting：启动中，waitMigrate：待迁移，migrating：迁移中，migrated：迁移成功，createFailed：创建失败，startFailed：启动失败，migrateFailed：迁移失败，error：异常错误，deleting：删除中，migrateTimeout：迁移超时)
        :param currentStep: (Optional) 当前迁移步骤：
- clientFlowInSource：初始化状态，client流量位于源端；
- migrateAndCheck：迁移数据并且校验，client流量仍位于源端；
- clientFlowInProxy：client的流量位于迁移代理上；
- clientFlowRedirect：迁移代理切换client的流量；
- clientFlowInTarget：client流量切换到目的端；
- migrateFinish：迁移完成状态；

        :param currentStepStatus: (Optional) 当前迁移步骤状态，init初始化，running运行中，success成功，fail失败
        :param failedReason: (Optional) 失败原因
        :param createdTime: (Optional) 创建时间(ISO 8601标准的UTC时间，格式为：YYYY-MM-DDTHH:mm:ssZ)
        """

        self.instanceId = instanceId
        self.migrationName = migrationName
        self.migrationStatus = migrationStatus
        self.currentStep = currentStep
        self.currentStepStatus = currentStepStatus
        self.failedReason = failedReason
        self.createdTime = createdTime
